package exam.huawei;

import java.util.*;

/**
 * @author chenhong
 * @version 1.0
 * @description TODO
 * @date 2023/4/13 18:18
 */
public class HJ26 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            String s = in.nextLine();
            Character[] characters = new Character[s.length()];
            for (int i = 0; i < s.length(); i++) {
                characters[i] = s.charAt(i);
            }
            Arrays.sort(characters, new Comparator<Character>() {
                @Override
                public int compare(Character o1, Character o2) {
                    if(Character.isLetter(o1) && Character.isLetter(o2)){
                        if(Character.toUpperCase(o1) != Character.toUpperCase(o2)){
                            return Character.toUpperCase(o1) - Character.toUpperCase(o2);
                        }
                    }
                    return  0;
                }
            });
            for (Character character : characters) {
                System.out.print(character);
            }
            System.out.println();

        }
    }

    public static String sort(String str) {
        // 先将英文字母收集起来
        List<Character> letters = new ArrayList<>();
        for (char ch : str.toCharArray()) {
            if (Character.isLetter(ch)) {
                letters.add(ch);
            }
        }
        // 将英文字母先排序好
        letters.sort(new Comparator<Character>() {
            public int compare(Character o1, Character o2) {
                return Character.toLowerCase(o1) - Character.toLowerCase(o2);
            }
        });
        // 若是非英文字母则直接添加
        StringBuilder result = new StringBuilder();
        for (int i = 0, j = 0; i < str.length(); i++) {
            if (Character.isLetter(str.charAt(i))) {
                result.append(letters.get(j++));
            } else {
                result.append(str.charAt(i));
            }
        }
        return result.toString();
    }
}

